Design Patterns

Being decoupled

May 28th, 2020

Being decoupled, what does that even mean?

Ramon de la Fuente

Specifying specific rules with a pattern

July 2nd, 2018

Chaining tricky business rules using boolean logic

Edwin Kortman

More on one-to-many/many-to-one associations in Doctrine 2

September 10th, 2013

In my previous blog I explained how to handle the mythical "join tables with extra columns" in Doctrine 2. It comes down to _not_ creating a many-to-many association, but a one-to-many/many-to-one. But in the real world we usually treat this process a bit differently: We draw up a contract in which we specify the information that's needed, including the person and company it relates to.

Jasper N. Brouwer

Doctrine 2: How to handle join tables with extra columns

September 6th, 2013

A _join table_ table (also know as a _junction table_ or _cross-reference table_) is a table that links 2 (or more) other tables together within the same database by primary key. This means that a join table will only contain foreign keys, there is no place for these extra columns.

Jasper N. Brouwer

Wrapping your models snugly in ACL interfaces

May 21st, 2011

More and more we're encountering Zend Framework projects where people have written up their own model implementations. Which isn't a surprise of course, as the framework does not include ORM, and the models folder is still empty after running the "zf create project" command...

Ramon de la Fuente